import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
//这里ElementPlus我们使用完整引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/assets/less/index.less'
import { createPinia } from 'pinia'
const pinia=createPinia()
const app=createApp(App)
app
.use(router)
.use(ElementPlus)
.use(pinia)
.mount('#app')
// createApp(App).mount('#app')

// 注册@element-plus/icons-vue图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for(const [key,component] of Object.entries(ElementPlusIconsVue)){
    app.component(key,component)
}
